package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 提现管理业务对象 t_withdraw_record
 *
 * @author Joker
 * @date 2024-07-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WithdrawRecordBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID(代理)
     */
    private Long userId;

    /**
     * 代理名称
     */
    private String userName;

    /**
     * 提现金额
     */
    @NotNull(message = "提现金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal withdrawMoney;

    /**
     * 提现方式（0-ert20、1-trc20、2-银行卡、3-支付宝）
     */
    @NotBlank(message = "提现方式（0-ert20、1-trc20、2-银行卡、3-支付宝）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String withdrawType;

    /**
     * 提现二维码
     */
    private String withdrawCode;

    /**
     * 是否打款（0-已打款、1-未打款、2-拒绝打款）
     */
    private String playMoneyType;

    /**
     * 失败原因
     */
    private String failMsg;

    /**
     * 打款时间
     */
    private Date playMoneyTime;

    /**
     * 拒绝时间
     */
    private Date failTime;

    /**
     * 提现次数
     */
    private Integer withdrawCount;

    /**
     * 备注
     */
    private String remark;


}
